class CreateBudgets < ActiveRecord::Migration
  def change
    create_table :budgets do |t|
      t.integer :account_id
      t.references :category
      t.float :amount

      t.timestamps
    end
    add_index :budgets, :category_id
  end
end
